package com.maserb.monitor.repository.JwQuestion;

import com.maserb.monitor.entity.jwQuestion.JwQuestionEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JwQuestionRepository extends JpaSpecificationExecutor<JwQuestionEntity>
        , PagingAndSortingRepository<JwQuestionEntity, String> {
    @Query(value = "select max(favorites) from JwQuestionEntity ")
    Integer find();
}